4D Chart v13

CT SET LEGEND TEXT

Home

 
4D Chart v13
CT SET LEGEND TEXT

CT SET LEGEND TEXT 


 

CT SET LEGEND TEXT ( area ; object ; legendItem ; legendtext ) 
Parameter Type   Description
area  Longint in 4D Chart area
object  Longint in Object ID
legendItem  Integer in Legend item number
legendtext  Text in Text of legend item

The CT SET LEGEND TEXT command sets the text of the specified legend item.

legendItem is the number of the series (or category for a pie chart) in the legend. However, if the legend order has been reversed, legendItem reflects the original order, not the reversed order.

Example  

This example changes the legend text of the chart specified by $ChartID.

 ARRAY STRING(20;aLegend;3)
 aLegend{1}:="Sales"
 aLegend{2}:="Marketing"
 aLegend{3}:="Engineering"
 
 For($i;1;3)
    CT SET LEGEND TEXT(vArea;$ChartID;$i;aLegend{$i})
 End for

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14594

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET LEGEND ATTRIBUTES
CT Get legend text
CT SET LEGEND ATTRIBUTES